import { NullablePromise, DataList } from "pao-aop";

/*
 * 版权：Copyright (c) 2019 红网
 * 
 * 创建日期：Tuesday April 30th 2019
 * 创建者：杨子毅(yangziyi) - gzhhyangzy@126.com
 * 
 * 修改日期: Tuesday, 30th April 2019 12:03:52 pm
 * 修改者: 杨子毅(yangziyi) - gzhhyangzy@126.com
 * 
 * 说明
 * 		1、模版管理
 */

/**
 * 模版对象
 */
export interface Stencil {
    /** id */
    id?: string;
    /** 模版名称 */
    stencil_name?: string;
    /** 模版内容 */
    stencil_value?: any[];
    /** 创建时间 */
    create_date?: string;
}

/**
 * 模版查询对象
 */
export class StencilCondition {
    /** 模版名称 */
    stencil_name?: string;
}

/**
 * 模版管理服务
 */
export class IStencilService {
    /**
     * 查询列表
     */
    get_stencil_list?(condition?: StencilCondition, page?: number, count?: number): NullablePromise<DataList<Stencil> | undefined> {
        return undefined;
    }
    /**
     * 获取模版详情
     */
    get_stencil?(id?: string): NullablePromise<Stencil | undefined> {
        return undefined;
    }
    /**
     * 模版新增/编辑
     */
    insert_stencil?(stencil?: Stencil): NullablePromise<boolean | undefined> {
        return undefined;
    }
    /**
     * 模版删除
     */
    del_stencil?(ids?: string[]): NullablePromise<boolean | undefined> {
        return undefined;
    }
}